package cn.stylefeng.guns.modular.business.frequency.ordercarverify.service;

import cn.stylefeng.guns.modular.business.frequency.ordercarverify.entity.OrderCarVerify;
import cn.stylefeng.guns.modular.business.frequency.orderlogistics.model.param.ErrorMsg;
import cn.stylefeng.guns.modular.business.frequency.ordersub.model.result.PkgOrderCarVerify;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 验车记录 服务类
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
public interface OrderCarVerifyService extends IService<OrderCarVerify> {

    PkgOrderCarVerify getVerifyInfo(Long orderId);

    List<PkgOrderCarVerify> getMultiVerifyInfo(List<Long> orderIdList);

    boolean checkVerify(OrderCarVerify orderCarVerify, StringBuilder errorMsg);

    void addVerify(Long userId, OrderCarVerify orderCarVerify, boolean hasStock);

    boolean checkVerifyUpdate(OrderCarVerify orderCarVerify, ErrorMsg errorMsg);

    void updateVerify(OrderCarVerify orderCarVerify);

    void repealVerifyCar(Long orderId);

    boolean checkRepealVerifyCar(Long orderId, ErrorMsg errorMsg);

    void returnAddVerify(Long orderId);
}